﻿using Microsoft.AspNetCore.Mvc;

namespace AdminBase.Model
{
    /// <summary>
    /// 权限查询参数类
    /// </summary>
    public class PermissionsQueryParam : PageBase
    {
        /// <summary>
        /// 获取类型：tree
        /// </summary>
        [FromQuery(Name = "getType")]
        public string? GetType {  get; set; }

        /// <summary>
        /// 关键词匹配：权限名、权限标识、描述、路由路径
        /// </summary>
        [FromQuery(Name = "search")]
        public string? KeyWord { get; set; }

        /// <summary>
        /// 是否是菜单
        /// </summary>
        [FromQuery(Name = "isMenu")]
        public bool? IsMenu { get; set; }
    }
}
